package com.jwdf.uda.ui.fragment.user.personal;

import android.os.Bundle;
import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.event.FilterListEvent;
import com.jwdf.uda.ui.fragment.find.UserInfoSquareFragment;

/**
 * Created by Administrator on 2016/6/20.
 */
public class ExtendCollocationFragment extends UserInfoSquareFragment {
    private static String mUserId;

    public static ExtendCollocationFragment instance(String userId) {
        mUserId=userId;
        ExtendCollocationFragment view = new ExtendCollocationFragment();
        Bundle args = new Bundle();
        args.putString("uid", userId);
        view.setArguments(args);
        return view;
    }

    @Override
    protected String getUserId() {
        return getArguments().getString("uid");
    }

    @Override
    public void onEvent(FilterListEvent event) {
        autoRefresh();
    }

    @Override
    protected PbBean.PbSignPageFilterType getFilterType() {
//        if(TextUtils.equals(mUserId, ConfigUtils.getUserId(getContext()))) {
//            return PbBean.PbSignPageFilterType.PAGE_FILTER_TYPE_SELF;
//        }else {
            return PbBean.PbSignPageFilterType.PAGE_FILTER_TYPE_USER;
//        }
    }
}
